const sync.mutexLocked
16 uses
sync (current package)
mutex.go#L48: mutexLocked = 1 << iota // mutex is locked
mutex.go#L85: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L102: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L109: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L128: if old&(mutexLocked|mutexStarving) == mutexLocked && runtime_canSpin(iter) {
mutex.go#L144: new |= mutexLocked
mutex.go#L146: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L153: if starving && old&mutexLocked != 0 {
mutex.go#L165: if old&(mutexLocked|mutexStarving) == 0 {
mutex.go#L181: if old&(mutexLocked|mutexWoken) != 0 || old>>mutexWaiterShift == 0 {
mutex.go#L184: delta := int32(mutexLocked - 1<<mutexWaiterShift)
mutex.go#L221: new := atomic.AddInt32(&m.state, -mutexLocked)
mutex.go#L230: if (new+mutexLocked)&mutexLocked == 0 {
mutex.go#L242: if old>>mutexWaiterShift == 0 || old&(mutexLocked|mutexWoken|mutexStarving) != 0 {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |